<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Basic Web Worker</title>
<script>
if (window.Worker) {
    var myWorker = new Worker('worker.js');
    
    myWorker.postMessage(1600); // 发送数据到 Worker
    myWorker.onmessage = function(event) {
        console.log('Square root:', event.data);
    };
} else {
    console.log('Your browser does not support Web Workers.');
}
</script>
</head>
<body>
</body>
</html>